<?php
$forum_id = $pun_user["id"];

$sql = "SELECT * FROM wm_characters WHERE character_forum_id = '$forum_id' AND character_active='1'";
$result = $db->query($sql);

$character = $db->fetch_assoc($result);

if($character["character_admin"] != 1) {
 header("Location: denied.php");
 exit;
}

?>
